#define _CRT_SECURE_NO_WARNINGS 1
#include "queue.h"
#include "stack.h"

void test()
{
	Queue que;
	QueueInit(&que);
	QueuePush(&que, 1);
	QueuePush(&que, 2);
	QueuePush(&que, 3);
	QueuePop(&que);
	QueuePop(&que);
	QueuePop(&que);
	//QueuePop(&que);
	QueuePush(&que, 3);

	//printf("%d ", QueueFront(&que));
	//QueuePop(&que);

	//printf("%d ", QueueBack(&que));



	//QueuePop(&que);
	//QueuePop(&que);
	//QueuePop(&que);
	//QueueDestroy(&que);
}

void teststack()
{
	MyStack* st = myStackCreate();

	myStackPush(st, 1);
	myStackPush(st, 2);

	int x = myStackTop(st);
	myStackPop(st);
	myStackPop(st);

	if (myStackEmpty(st))
	{
		printf("kong\n");
	}

}
int main()
{
	//test();
	teststack();
	return 0;
}